<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Map extends Model
{
    protected $fillable = [
        'title','image','widehigh','cat_id1','status','downnum','collecnum'
    ];


    /**
     *  获得此标签下所有的贴图。
     */
    public function map()
    {
        return $this->morphedByMany('App\Collect', 'commentable');
    }
}
